package com.wyg.blog.model.blog;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @author: WYG
 * @time: 2020/6/30 9:04
 */

public class Tag implements Serializable {
    private Integer id;
    private String tag;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date create_time;
    private boolean state;

    public Tag() {
    }

    public Tag(Integer id, String tag, Date create_time, boolean state) {
        this.id = id;
        this.tag = tag;
        this.create_time = create_time;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
}
